package com.learn.controller;

import com.learn.domain.LenStudent;
import com.learn.service.LenStudentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author admin
 * @date 2024/7/12 21:30
 *
 * 与前端交互
 */
@RestController
@RequestMapping("/stu")

public class StudentController {
    @Resource
    private LenStudentService lenStudentService;

    @GetMapping("/test1")
    public List<LenStudent> test1(){
        return lenStudentService.search();
    }
}
